﻿package com.netterminator.gwt.client;

import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.layout.HLayout;
import com.smartgwt.client.widgets.layout.VLayout;

/**
 * 此类为所有容器顶层类，所有菜单项容器需继承此类。<P>
 * 其他容器（非菜单项所对应的容器）不需继承此类
 * 
 * @author SI YULONG
 *
 */
public abstract class NetTerminatorPanel extends VLayout {

    public NetTerminatorPanel() {

    	setWidth100();
        setHeight100();

        Canvas panel = getViewPanel();
        HLayout wrapper = new HLayout();
        wrapper.setWidth100();
        wrapper.addMember(panel);

        addMember(wrapper);
    }

    /**
     * 获取画布/容器实例
     * @return
     */
    public abstract Canvas getViewPanel();

}
